<template>
<div id="headers">
  <div class="pull-left">
    <a href="/#/admin"><img src="./image/logo.png"/><span class="bor-r">控制台</span></a>
  </div>
  <div class="pull-right">
    <span><i class="el-icon-setting"></i></span>
    <span><i class="el-icon-question"></i>
          <el-badge is-dot class="item"> </el-badge>
        </span>
    <span><img src="./image/port.png" class="port"></span>
  </div>
</div>
</template>

<script>
export default {
  name: 'headers',
  data () {
    return {
      msg: '头部组件'
    }
  }
}
</script>

<style lang="less">
.pull-left{float: left}
.pull-right{float: right}
#headers{
  line-height: 88px;
  width: 100%;
  height: 88px;
  margin: 0 auto;
  background: #41403f;
  color: #b7b7b7;
  a{    color: #b7b7b7;
  }
  img{
    width: 60px;
    float: left;
    margin: 13px 20px;
  }
  i{
    font-size: 30px;
    margin: 0 10px;
  }
  span{
    height: 88px;
    width: auto;
    float: left;
    padding: 0 25px;
    border-left: 1px solid #545c64;
    display: block;
    overflow: hidden;
  }
  .bor-r{
    border-right: 1px solid #333332;
  }

  //小红点
  .item {
    margin-top: -40px;
    margin-left: -15px!important;
  }
  .el-badge__content{
    border: 1px solid #ff0000;
    background-color: #ff0000;
  }
  .port{
    width: 50px;
    height: 50px;
    border-radius: 30px;
  }
  @media screen and (max-width: 660px) {
    span {
      padding: 0 10px;
    }
    i{
      font-size: 24px;
    }
    //小红点
    .item {
      margin-top: -30px;
      margin-left: -20px!important;
    }
  }
}
</style>
